<script setup>
import { ref } from 'vue';
const isLogin = ref(true);
</script>

<template>
  <van-nav-bar class="header">
    <template #title>
      <van-image
        src="/fy_logo.png"
      />
    </template>
    <template #left>
      <van-icon name="wap-nav" size="18" />
    </template>
    <template #right>
      <van-icon v-if="isLogin" name="user" size="18" />
      <span v-else @click="$router.push('/login')">登录</span>
    </template>
  </van-nav-bar>
</template>

<style>
.van-nav-bar__title{
  display: flex;
  align-items: center;
  height: 100%;
}
</style>